home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / WFC010.ZIP / INCLUDE / WFC.H < prev   
Encoding:
C/C++ Source or Header  |  1995-12-07  |  4.0 KB  |  193 lines

  1. #ifndef WINDOWS_FOUNDATION_CLASSES
  2.  
  3. /*
  4. ** Author: Samuel R. Blackburn
  5. ** CI$: 76300,326
  6. ** Internet: sammy@sed.csc.com
  7. **
  8. ** You can use it any way you like as long as you don't try to sell it.
  9. **
  10. ** Any attempt to sell WFC in source code form must have the permission
  11. ** of the original author. You can produce commercial executables with
  12. ** WFC but you can't sell WFC.
  13. **
  14. ** Copyright, 1995, Samuel R. Blackburn
  15. **
  16. ** $Workfile: $
  17. ** $Revision: $
  18. ** $Modtime: $
  19. */
  20.  
  21. #define WINDOWS_FOUNDATION_CLASSES
  22.  
  23. /*
  24. ** Need to define NO_ANSI_ONLY (an undocumented "feature", someone let the
  25. ** children play in the header files again...
  26. */
  27.  
  28. #define NO_ANSIUNI_ONLY
  29.  
  30. /*
  31. ** Yet another undocumented feature we gotta worry about
  32. */
  33.  
  34. #if defined( WIN32_LEAN_AND_MEAN )
  35. #undef WIN32_LEAN_AND_MEAN
  36. #endif
  37.  
  38. /*
  39. ** Need to un-define VC_EXTRALEAN, another undocumented feature...
  40. */
  41.  
  42. #if defined( VC_EXTRALEAN )
  43. #undef VC_EXTRALEAN
  44. #endif
  45.  
  46. /*
  47. ** Include all the needed MFC stuff
  48. */
  49.  
  50. #include <afx.h>
  51. #include <afxwin.h>
  52. #include <afxcoll.h>
  53. #include <winperf.h>
  54. #include <winsock.h>
  55. #include <ras.h>
  56. #include <raserror.h>
  57. #include <winuser.h>
  58. #include <lm.h>
  59. #include <lzexpand.h>
  60.  
  61. #define CARRIAGE_RETURN 13
  62. #define LINE_FEED       10
  63.  
  64. /*
  65. ** An easy way to refer to colors . . .
  66. */
  67.  
  68. #define BLACK     RGB( 0x00, 0x00, 0x00 )
  69. #define RED       RGB( 0xFF, 0x00, 0x00 )
  70. #define GREEN     RGB( 0x00, 0xFF, 0x00 )
  71. #define YELLOW    RGB( 0xFF, 0xFF, 0x00 )
  72. #define DKGRAY    RGB( 0x7F, 0x7F, 0x7F )
  73. #define DARK_GRAY DKGRAY
  74. #define LTGRAY    RGB( 0xC0, 0xC0, 0xC0 )
  75. #define LIGHT_GRAY LTGRAY
  76. #define DKRED     RGB( 0x7F, 0x00, 0x00 )
  77. #define DARK_RED  DKRED
  78. #define MAGENTA   RGB( 0xFF, 0x00, 0xFF )
  79. #define PURPLE    RGB( 0x7F, 0x00, 0x7F )
  80. #define BLUE      RGB( 0x00, 0x00, 0xFF )
  81. #define DKBLUE    RGB( 0x00, 0x00, 0x7F )
  82. #define DARK_BLUE DKBLUE
  83. #define INDIGO    RGB( 0x00, 0xFF, 0xFF )
  84. #define DKINDIGO  RGB( 0x00, 0x7F, 0x7F )
  85. #define DARK_INDIGO DKINDIGO
  86. #define WHITE     RGB( 0xFF, 0xFF, 0xFF )
  87. #define DKGREEN   RGB( 0x00, 0x7F, 0x00 )
  88. #define DARK_GREEN DKGREEN
  89. #define DKTYELLOW RGB( 0x7F, 0x7F, 0x00 )
  90. #define DARK_YELLOW DKYELLOW
  91. #define LTYELLOW  RGB( 0xFF, 0xFF, 0x7F )
  92. #define LIGHT_YELLOW LTYELLOW
  93.  
  94. void ASCII_to_UNICODE( LPCSTR ansi_string, LPWSTR unicode_string );
  95. void UNICODE_to_ASCII( LPCWSTR unicode_string, LPSTR ansi_string );
  96. void Convert_NERR_Code_to_String( DWORD error_code, CString& error_message );
  97.  
  98. #include "samtf.h"
  99.  
  100. #if ! defined( BITBOOL )
  101. #define BITBOOL(x) (!(!(x)))
  102. #endif
  103.  
  104. #if ! defined( bit_set )
  105. #define bit_set(   arg, posn ) ((arg) | (1L << (posn)))
  106. #endif
  107.  
  108. #if ! defined( bit_clear )
  109. #define bit_clear( arg, posn ) ((arg) & ~(1L << (posn)))
  110. #endif
  111.  
  112. #if ! defined( bit_test )
  113. #define bit_test(  arg, posn ) BITBOOL((arg) & (1L << (posn)))
  114. #endif
  115.  
  116. /*
  117. ** Structure Helpers
  118. */
  119.  
  120. #include <Structs.hpp>
  121.  
  122. /*
  123. ** The Registration Database API
  124. */
  125.  
  126. #include <CRegisty.hpp>
  127.  
  128. /*
  129. ** Event Logging
  130. */
  131.  
  132. #include <CEvntLog.hpp>
  133.  
  134. #include <CUNC.hpp>
  135. #include <CURL.hpp>
  136.  
  137. /*
  138. ** Remote Access Service
  139. */
  140.  
  141. #include <CRAS.hpp>
  142.  
  143. #include <DumyFile.hpp>
  144. #include <Serial.hpp>
  145.  
  146. /*
  147. ** Simple Sockets
  148. */
  149.  
  150. #include <sockets.hpp>
  151. #include <lsockets.hpp>
  152. #include <tsockets.hpp>
  153. #include <SockFile.hpp>
  154.  
  155. /*
  156. ** Named Pipes
  157. */
  158.  
  159. #include <cnmpipe.hpp>
  160.  
  161. /*
  162. ** Compressed Files
  163. */
  164.  
  165. #include <lzfile.hpp>
  166.  
  167. #include <CNetwork.hpp>
  168. #include <CServer.hpp>
  169. #include <CNetRsrc.hpp>
  170. #include <CNetSess.hpp>
  171. #include <CNetWkst.hpp>
  172. #include <CNetFile.hpp>
  173. #include <CNetConn.hpp>
  174. #include <CNetShar.hpp>
  175. #include <CNetInfo.hpp>
  176. #include <Ovrlpd.hpp>
  177. #include <dcb.hpp>
  178. #include <CService.hpp>
  179. #include <CSvcMgr.hpp>
  180. //#include <CWait.hpp>
  181. #include <CBubble.hpp>
  182. #include <DrawObj.hpp>
  183. #include <DrawGrid.hpp>
  184. #include <CSquigl.hpp>
  185. #include <CSMTF.hpp>
  186. #include <CTape.hpp>
  187. #include <CFileTime.hpp>
  188. #include <CSystemTime.hpp>
  189.  
  190. #pragma warning( disable : 4699 )
  191.  
  192. #endif // WINDOWS_FOUNDATION_CLASSES
  193.